package com.ocom.mjrecode.controller;


import com.ocom.common.resp.Result;
import com.ocom.mjrecode.service.MjRecodeService;
import com.ocom.mjrecode.vo.YmDataGroupByMachVo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

	@Autowired
    MjRecodeService mjRecodeService;

	@GetMapping("/test123")
	public Result getip() throws Exception {

		YmDataGroupByMachVo ymDataGroupByMachVo = new YmDataGroupByMachVo();
		ymDataGroupByMachVo.setComId(1L);
		ymDataGroupByMachVo.setStartTime("2022-4-1 00:00:00");
		ymDataGroupByMachVo.setEndTime("2022-5-18 00:00:00");
		ymDataGroupByMachVo.setPage(1);
		ymDataGroupByMachVo.setSize(10);
		return mjRecodeService.getYmDataGroupByMach(ymDataGroupByMachVo);

	}

}
